
/**
 * 路由表配置
 */
export default [
  // ## login page
  {
    name: 'login',
    path: '/login',
    hidden: true,
    component: () => import(/* webpackChunkName: 'login' */ '@/views/login/index.vue')
  },
  // ## main page
  {
    path: '/',
    component: () => import(/* webpackChunkName: 'common' */ '@/layout/index.vue'),
    redirect: '/dashboard',
    children: [{
      path: 'dashboard',
      name: 'Dashboard',
      component: () => import( /* webpackChunkName: "dashboard" */ '@/views/dashboard/index.vue'),
      meta: {
        title: '首页',
        icon: 'el-icon-menu'
      }
    },]
  },
  // ## not found page
  // {
  //   name: '404',
  //   path: '/:pathMatch(.*)',
  //   hidden: true,
  //   component: () => import(/* webpackChunkName: 'common' */ '@/views/404.vue')
  // }
]